package com.acminds.acuteauto.persistence.entities;

// Generated May 13, 2012 8:21:43 PM by Hibernate Tools 3.4.0.CR1

import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;

import com.acminds.acuteauto.persistence.dto.*;

/**
 * Employment generated by customhbm2java
 */
@MappedSuperclass
public abstract class AbstractEmployment extends
		com.acminds.acuteauto.persistence.BaseDTO implements
		java.io.Serializable {

	private static final long serialVersionUID = 1L;

	private Integer employmentId;
	private Applicant applicant;
	private Location location;
	private String employerName;
	private String designation;
	private String occupation;
	private int incomeMonthly;
	private Integer totalYears;
	private Integer totalMonths;
	private boolean currentEmployer;

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "EMPLOYMENT_ID", unique = true, nullable = false)
	public Integer getEmploymentId() {
		return this.employmentId;
	}

	public void setEmploymentId(Integer employmentId) {
		this.employmentId = employmentId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "APPLICANT_ID", nullable = false)
	public Applicant getApplicant() {
		return this.applicant;
	}

	public void setApplicant(Applicant applicant) {
		this.applicant = applicant;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "LOCATION_ID", nullable = false)
	public Location getLocation() {
		return this.location;
	}

	public void setLocation(Location location) {
		this.location = location;
	}

	@Column(name = "EMPLOYER_NAME", nullable = false, length = 60)
	public String getEmployerName() {
		return this.employerName;
	}

	public void setEmployerName(String employerName) {
		this.employerName = employerName;
	}

	@Column(name = "DESIGNATION", nullable = false, length = 60)
	public String getDesignation() {
		return this.designation;
	}

	public void setDesignation(String designation) {
		this.designation = designation;
	}

	@Column(name = "OCCUPATION", length = 60)
	public String getOccupation() {
		return this.occupation;
	}

	public void setOccupation(String occupation) {
		this.occupation = occupation;
	}

	@Column(name = "INCOME_MONTHLY", nullable = false)
	public int getIncomeMonthly() {
		return this.incomeMonthly;
	}

	public void setIncomeMonthly(int incomeMonthly) {
		this.incomeMonthly = incomeMonthly;
	}

	@Column(name = "TOTAL_YEARS")
	public Integer getTotalYears() {
		return this.totalYears;
	}

	public void setTotalYears(Integer totalYears) {
		this.totalYears = totalYears;
	}

	@Column(name = "TOTAL_MONTHS")
	public Integer getTotalMonths() {
		return this.totalMonths;
	}

	public void setTotalMonths(Integer totalMonths) {
		this.totalMonths = totalMonths;
	}

	@Column(name = "CURRENT_EMPLOYER", nullable = false)
	public boolean isCurrentEmployer() {
		return this.currentEmployer;
	}

	public void setCurrentEmployer(boolean currentEmployer) {
		this.currentEmployer = currentEmployer;
	}

}
